package entity;

import lombok.Data;
import lombok.ToString;

/**
 * @author: knowno
 * @create: 2025-09-19 09:20
 * @Version 1.0
 **/
@Data
@ToString
public class Area {
       private Integer areaId;
       private String  areaName;
       private Integer parentId;

       //属于哪个城市
       private City city = new City();

       //setCityName =>内省=>cityName
       public void setCityName(String cityName) {
           this.city.setCityName(cityName);
       }


       //setProvinceName =>内省=>provinceName
       public void setProvinceName(String provinceName) {
           this.city.getProvince().setProvinceName(provinceName);
       }
}
